﻿<%@ Page Title="" Language="C#" MasterPageFile="~/design_page/admin/admin.master" AutoEventWireup="true" CodeFile="admin_member_add.aspx.cs" Inherits="design_page_admin_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">




 <div style="text-align: center; margin-right: auto; margin-left: auto; height: 166px;">
          <div style="text-align: center; margin-right: auto; margin-left: auto; width: 750px;" >
        <table cellpadding="0" cellspacing="11" class="style19" style="width: 740px">
            <tr>
                      <td style="vertical-align: bottom; height: 129px; text-align: right; width: 192px;">
                          成员类型:</td>
                <td 
                    class="style27" style="vertical-align: bottom; text-align: left; width: 181px;">
                          <asp:DropDownList ID="DropDownList_usertype" runat="server" Height="22px" 
                              Width="226px" AutoPostBack="True">
                              <asp:ListItem Selected="True">学生</asp:ListItem>
                              <asp:ListItem>老师</asp:ListItem>
                              <asp:ListItem>管理员</asp:ListItem>
                          </asp:DropDownList>
                </td>
                <td 
                    class="style27" style="text-align: left; vertical-align: bottom;">
                          <asp:Label ID="Label1" runat="server" Text="*选择添加成员类型"></asp:Label>
                </td>
            </tr>
            <tr>
                      <td style="width: 192px; text-align: right; height: 22px;">
                          ID:</td>
                <td class="style15" style="vertical-align: bottom; text-align: left; width: 181px;">
                          <asp:TextBox ID="TextBox_id" runat="server" Width="222px" MaxLength="14"></asp:TextBox>
                      </td>
                <td style="text-align: left">

                  

                      </td>
            </tr>
            <tr>
                      <td style="width: 192px; text-align: right;">
                          密码:</td>
                <td class="style15" style="vertical-align: bottom; text-align: left; width: 181px;">
                          <asp:TextBox ID="TextBox_pwd1" runat="server" Width="222px" MaxLength="12" 
                              text="111111"></asp:TextBox>
                      </td>
                <td style="text-align: left">
                          &nbsp;</td>
            </tr>
            <tr>
                      <td style="width: 192px; text-align: right;">
                          密码确认:
                          </td>
                <td class="style15" style="vertical-align: bottom; text-align: left; width: 181px;">
                          <asp:TextBox ID="TextBox_pwd2" runat="server" Width="222px" MaxLength="12" 
                              text="111111"></asp:TextBox>
                      </td>
                      <td style="text-align: left" >
                           
                       
                      </td>
            </tr>
            <tr>
                      <td style="width: 192px; text-align: right;">
                          姓名:</td>
                <td class="style15" style="vertical-align: bottom; text-align: left; width: 181px;">
                          <asp:TextBox ID="TextBox_name" runat="server" Width="222px" MaxLength="20"></asp:TextBox>
                      </td>
                <td style="text-align: left">
                          &nbsp;</td>
            </tr>
            <tr>
                      <td style="width: 192px; text-align: right;">
                          性别:</td>
                <td class="style15" style="vertical-align: bottom; text-align: left; width: 181px;">
                          <asp:DropDownList ID="DropDownList_sex" runat="server" Height="22px" 
                              Width="226px">
                              <asp:ListItem Selected="True">男</asp:ListItem>
                              <asp:ListItem>女</asp:ListItem>
                          </asp:DropDownList>
                      </td>
                <td style="text-align: left">
                          <asp:Label ID="Label6" runat="server" Text="*选择性别"></asp:Label>
                      </td>
            </tr>
            <tr>
                      <td style="width: 192px; text-align: right;">
                          班级:</td>
                <td class="style15" style="vertical-align: bottom; text-align: left; width: 181px;">
                          <asp:DropDownList ID="DropDownList_class" runat="server" Height="22px" 
                              Width="226px" DataSourceID="SqlDataSource1" DataTextField="column2" 
                              DataValueField="column2">
                          </asp:DropDownList>
                          <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                              ConflictDetection="CompareAllValues" 
                              ConnectionString="<%$ ConnectionStrings:mei_design_5.2 %>" 
                              DeleteCommand="DELETE FROM [_class] WHERE [_Cid] = @original_column1 AND [_Cname] = @original_column2" 
                              InsertCommand="INSERT INTO [_class] ([_Cid], [_Cname]) VALUES (@column1, @column2)" 
                              OldValuesParameterFormatString="original_{0}" 
                              SelectCommand="SELECT [_Cid] AS column1, [_Cname] AS column2 FROM [_class]" 
                              UpdateCommand="UPDATE [_class] SET [_Cname] = @column1 WHERE [_Cid] = @original_column1 AND [_Cname] = @original_column2">
                              <DeleteParameters>
                                  <asp:Parameter Name="original_column1" Type="String" />
                                  <asp:Parameter Name="original_column2" Type="String" />
                              </DeleteParameters>
                              <InsertParameters>
                                  <asp:Parameter Name="column1" Type="String" />
                                  <asp:Parameter Name="column2" Type="String" />
                              </InsertParameters>
                              <UpdateParameters>
                                  <asp:Parameter Name="column1" Type="String" />
                                  <asp:Parameter Name="original_column1" Type="String" />
                                  <asp:Parameter Name="original_column2" Type="String" />
                              </UpdateParameters>
                          </asp:SqlDataSource>
                      </td>
                <td style="text-align: left">
                          <asp:Label ID="Label5" runat="server" Text="*选择班级,添加学生成员必须"></asp:Label>
                      </td>
            </tr>
            <tr>
                      <td style="width: 192px; text-align: right;">
                          手机:</td>
                <td class="style15" style="vertical-align: bottom; text-align: left; width: 181px;">
                          <asp:TextBox ID="TextBox_phone" runat="server" Width="222px" MaxLength="15"></asp:TextBox>
                      </td>
                <td style="text-align: left">
                          &nbsp;</td>
            </tr>
            <tr>
                <td class="style16"  colspan="3">
                                             <table cellpadding="0" cellspacing="0" class="style1">
                                                 <tr>
                                                     <td style=" width: 270px; text-align: right; vertical-align: bottom; height: 31px;">
                                             <asp:Button ID="Button2" runat="server" Height="23px" Text="添加" Width="67px" 
                                                             onclick="Button2_Click" />
                                                     </td>
                                                     <td style=" width: 50px; vertical-align: bottom; height: 31px;">
                                                         </td>
                                                     <td style=" text-align: left; vertical-align: bottom; height: 31px;">
                                             <asp:Button ID="Button3" runat="server" Height="23px" Text="重置" Width="67px" 
                                                             onclick="Button3_Click" />
                                                     </td>
                                                 </tr>
                                                 <tr>
                                                     <td style=" text-align: center; " colspan="3">
                                                         <asp:Label ID="Label7" runat="server" Text="Label" Visible="False"></asp:Label>
                                                     </td>
                                                 </tr>
                                             </table>
                </td>
            </tr>
        </table>
       </div> 
    </div>
</asp:Content>

